package com.wl.designpattern.mediator;

/**
 * 创建抽象同事角色
 * Created by wangliang on 2021/2/27.
 */
public abstract class Person {
    protected HouseMediator houseMediator;

    public Person(HouseMediator houseMediator) {
        this.houseMediator = houseMediator;//获取中介
    }

    public abstract void send(String message);//发布信息

    public abstract void getNotice(String message);//接受信息
}
